Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LizandroCanul/back_sdo/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Estatus de Obra (work status) defines the current state of public works projects such as “PROGRAMADA” (scheduled), “EN PROCESO” (in progress), “SUSPENDIDA” (suspended), or “TERMINADA” (completed). This catalog provides reference data for tracking project status.Get All Work Statuses
Retrieves a list of all work status types in the system.Authentication
This endpoint requires authentication using a Bearer token.Response
Unique identifier for the work status
Name of the work status (max 50 characters, unique)
Status flag indicating if this work status is active (default: true)
Example Request
Example Response
Get Work Status by ID
Retrieves a single work status by its unique identifier.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the work status to retrieve
Response
Returns a single work status object with the following fields:Unique identifier for the work status
Name of the work status
Status flag indicating if this work status is active
Example Request
Example Response
Error Responses
HTTP status code (404 if work status not found)
Error message describing what went wrong
Create Work Status
Creates a new work status in the system.Authentication
This endpoint requires authentication using a Bearer token.Request Body
Name of the work status (max 50 characters, must be unique)
Status flag (defaults to true if not provided)
Validation Rules
- nombre is required and must be a non-empty string
- nombre must be unique across all work statuses
- nombre is limited to 50 characters
- activo is optional and defaults to true
Example Request
Example Response
Error Response
Update Work Status
Updates an existing work status.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the work status to update
Request Body
All fields are optional. Only include fields you want to update.Name of the work status (must be unique if provided)
Status flag
Example Request
Example Response
Delete Work Status
Deletes a work status from the system.Authentication
This endpoint requires authentication using a Bearer token.Path Parameters
The unique identifier of the work status to delete
Deleting a work status that is referenced by existing projects may fail due to foreign key constraints. Consider setting activo to false instead.